cleaning code in SettingsViewController