Adding in a fix so that when the pages of the app are changed, the app scrolls to the top of each page instead of reamining in the same scroll position as before