add complete function in taskController