If you are just changing the data shown then the correct approach is to put that data retrieval behind an API and use your client side framework (CSF) of choice to query the API to retrieve the related data. Once the data is returned to the client again use your CSF of choice to update the UI to show the data. There is no need for any custom views. If you aren't using a CSF yet then you need to otherwise this is going to be a really poorly performing UI.
Just for demo, if you aren't using a CSF, then the equivalent would be to post back to the server, have the server retrieve all the data for the view again, including any custom data, and then return the updated view to the client for rendering.