add directive to manipulate the DOM