fixes and improvements for the collapsing of po's in the treeviewer