Persist dynamic view changes

I want to create a dynamic page that allows a user to add an embedded view and change the position of existing views. I figured out how to change the location through a popup via parameters and messaging, but it does not seem to persist. If I refresh the page it is back to the location it originally was designed at.

By accomplishing this, there is some limited expansion of the user interface if say a new tank is added..... (assuming the I/O etc. are all connected correctly). .

Is there a call or method that can save this information back to the gateway so it is permanent?

Alternatively should I be looking at an entire load from a database of all the properties when the application is started?

This thread may be of use.
Save the configuration to a db table (or tables) whenever it changes. Load the configuration from the db on view startup or session startup and stuff it into a custom property.

Loading it on session start and placing it into a session custom property is probably the way to go because it only runs once, versus waiting on the DB every time you open the view that needs the configuration data.