added exportHtml method
update code