rounded out chat_ui.js