It looks like you already have the OnSwipeUp and OnSwipeDown actions on Page 1 changing the states, and have the actions set up to set the [[DPState]] variable to the value of the selected state. It looks like the animation timing on your state changes is interfering with setting the variable to the correct state (it’s setting it to the state from before the state change instead of the new state), so moving that variable action over to the OnPanelStateChange event should help to store the correct panel state value:
On Page 2, all you should need to do is set up an Open Link action on your back button to open a link to Page 1:
From there, the OnPageLoad event on Page 1 will set the dynamic panel to the value that you stored previously, so if the panel state was set to “Orders”, it will still be on “Orders” when the page loads:
If you want to also save the state of the dynamic panel that you have on Page 2, then you’ll want to create a second global variable and store that panel’s state in that new variable after you change states, and use OnPageLoad or OnLoad to set the panel state to the variable value (similar to Page 1). This way both panels will have their states preserved as you go back and forth between pages.