updated settings to use NSUserDefaults