defensive coding added to display user message callback