Cleaning up the display of messages