add style sheet and format messages