[subtree] Add after insert/remove hooks