update setGroups and setContacts