before modify ui, and client id