added the edit group function