adding routes and directives