Add HtmlPreview class