Format chat window, messages

@mikeymurph77 @ChristopherThorsen 
since you're using this in multiple places, I would extract a function that you can reuse