created index controller and index page