create controller and index page