Update controllers and corresponding directives