routing index method of controller to main page