cleaned up tasks_controller