reorganized tree-view

now in it's own file