allow tree to be opened / closed while maintaining search results - close #616