updated directives to use ng-click