Use function to reset page.