implemented callbacks for group chat