onclick action for exit button