browser refresh and restore fixes and improvements