update task collapse in task page