changed structure of controllers and how they handle views.