Port MainWindow to HTML and style improvement #4 #6