Updated HTML code to use format message