node collapsing and expanding conditional styling