location model shared prefs logic