Added scroll support for chat box and reformatted structure of displaying messages.