add styles and methods in messages portion