add controller directive