changed displaying of messages