1. display messages properly in window