Created a controller and view