Created a custom element to handle the messages