Modefy Controller::Index()

Refactor the method.