implemented editing and deleting of fields