update admin mode.