changed routes to direct to main page, added logout button