edits routes and views to account for logged-in users