Updated controller to automatically show the index method when the controller is specified without methodname i url