Refactoring message view.