Minor Updates to message window

Fixes minor issues and made window focus when a new event fires.