add listener to task manager