Make treeview refresh properly when adding nodes.