Exported handleClientIdChange