add task manage code