handle back button from PreferencesFragment