Implemented expandByDefault for grouping