add preferences to save settings