handle tree changes
handle tree merged