scroll to top before the page is populated