init treeview from script