cleaned up task_controller code for answer action