adding field_type and field_id to the returned fields
distinguishing between edit template and view template
clicking on a button now appropriate sets the field template and changes the values displayed