Added client-side behaviour for edit custom fields