Update applicationPreferences.m

added background processing