add main window to the app, change settings from window to dialog