applying class name to messagesView