added an edit mode for editing groups