Refactored SettingsActivity into PreferenceActivity