update directives with controller