implement the ability to return to the previous page.