Added sharing of controllers among directives