Add tree view of the tasks in the flow with popup menu for changing the TaskManager.
 Code cleanup