temp.
Refactored main view.