change the view model and reconstruct the tree