adding a controller for the index page