Use class in css
Created a MessageView to avoid code duplication