refactoring
refactoring treeview