separate callbacks for contacts and groups