Move functions to controller

- require modules and get lists in index_controller