settings window now working but not saving the content