tie the settings to the main window, make the cancel button in the settings work