UI for chatroom, functions log_chat_message function