fixed some chat UI and some bugs