added spinnerModel and prefs handling