* make another routine for api form submission, and invoke it when setting user prefs