added clicking on the exit button