Tree now expands/collapses correctly. Also, parents know when their children are added.