Updated hierachy collapsing to go top - down