SharedPreferences need to be declared before used