Refactors.

- Passing around args instead of everything as private variables.
- More loosely coupled and saves calls for active_view().
- Reduces lines of code.