add exit menu and cancel back button handle