update task hashmap