add directives add/del/edit