added a view and a controller