added configurable collapse features, Collapse = true