Added support for default messages. Fixed problem with center align of window