saved spinner in prefs, refactoring
refactoring