added ability to save settings