update preferences.html