changing logout method