Abstracted config inside MainWindow. Constructor moved to main