Exit button implemented