exit button with method