Add submitPreferences logic