changing the cancel buttons to 'back' buttons