added save and load of open windows to localStorage