added possibility to save settings