implemented load and save settings