added window.unload fix to make sure pages loading again when browser back button pressed