creating ng-click event