fix issue #2, using self.mainFrame().setHtml(html)