Working nested tree which closes child branches when parent branches close.