storing last update time in prefs