update script of creating treeview data