display the logout view and make it logout