Update Task Function

task type & task detail