settings window now actually updates and saves settings