update shared pref