Some changes to the way messages are added to the content div