Adds logic to reset the current page.