Changed the chat window to a popup with a custom closing button.