fixed browser back button not working as expected in pages with apps