Field Editing now working with a directive instead of an individual function