Changed mainView and mainController

Switched the code in the two around, so that Controller can be more
about storing and accessing data from the server.