Splitting up the View class