"exit" button implemented