added exit button action