Add event dispatcher in task manager