add a directive to support inline editing of input