added a controller and view