added editGroups method