fixed route for dashboard and added default behavior for changing pages when not logged in