refactoring SettingsActivity