Added sharedPreferences to replace contentdatasource