I have implemented the StarRating widget into my application in order for users to rate the specific event on an event detail page. However I cannot seem to figure out how to structure the action so that the rating remains saved.

As of now, when you select a rating, the rating holds on the page but if you press save or cancel the rating disappears when you go back to the detail page.
after rating image shown below