mod index method in terminal_controller.rb