update tree formatter removeLeaf