adding grouping to controllers