add dinamic routing in directives