Add index method to controller and index view.