adding angular directives and controllers