sync the tree when change on structure