added shared prefs to persist data