working warning system for the tree change function