directives sharing controller