switched from DefaultStyledDocument to HTMLDocument for chat windows and user panes