added framework for collapsible groupings