Moved all view functions to separate controllers