replaced back button with cancel