fixed the behavior of the collapsables