update UI of register, login, chatbox