Make some utility functions global again, move the methods bound to some events into the doOnDocumentReady handler, make them as generic as possible, may be they need to be used with totally different HTML Elements, start solving the problem of panels disappearing from profiles due to reference passing when a copy is needed, rename the side bar open boolean and filter it from the profiles, use the call to empty the workspace with the right object, delete a loaded profile by switching to default before starting instead of canceling the action. History added for manipulating the browser history (including the current address).