added a controller for the views