implemented ng-click