populate treeview from xml, cleanup