View refactor

I've moved the dashboard view files into their own sub-folders to make it tidier. Plus, I used @joecohens `set_active` helper to make managing the sidebar easier.
missing type hint