Render html preview on helper button click