fixed the layout of the chat window