Refactor MainWindow, Settings
Settings code coverage