improve message styling and behavior