Reset flags to go to initial page.