update treeview API