created a controller and index