refactoring link treeview