migrated from PreferencesActivity to PreferencesFragment to get rid of "deprecated" issues.