dispatch event only after task was updated