created index controller and view