Add support for collapsing and expanding Tree nodes.