Changing up the way views are created to make controllers more testable