Fixed htmlize and test in mainwindow