Creating a tree view of processes