Removed redundant toHtml method