continues improvements to the layout of the code by splitting the view and controller completely