updated treeView, removed unused code