added a ng-click event to fire directive