Fix crudEdit directive by referencing to $parent.scope where needed