Added the functionality to add incoming message to the dom
Fixed some rogue returns