modified routes and views for logout