Added functionality for editing a group.