cancel and back button should take to the back page