Changed order of update of front end data to prioritize settings first before actual values (because some value form elements depend on settings information)
Added instructon when updating front end trial data to set as true the attribute existingData for each setting, so that front end will re-render the form element with the value for the setting
Refactored Cyrus' code for setting the existingData variable so that it is reusable

GCP-10362
Reviewer : Cyrus Venn Casada