Put MainFrame code in own class
Created Config handler