added formatting for messages to center in screen