addPreferenceFromResource for settings