Store the state in the URL or in local storage (I would recommend the URL) Store the stage of the setup and any dialogues they are open, put them in an object JSON stringify them and put them in window.location.hash