Updated to use a PreferenceFragment rather than a PreferenceActivity