add directives with data passing through controller