Move functions to controller

- require modules and get lists in index_controller
Merge pull request #2 from rivayama/move_functions_to_controller

Move functions to controller