update treenode