Implemented exportHtml