Refactor MainWindow

* add syncWebViewToHtmlSource() method
* correct order in viewChangeSplit()