change the way the messages table is displayed, to prevent long messages from destroying the layout