updated the task controller