Use the list of fields to update in UpdateFormElements

One has to pass a list of elements that should be updated, but the function that updates
the form elements did not use this list. Hence too many fields were updated. This is critical
when the webapp returns too many data and the UpdateFormElements overrides data it shouldn't.