using ng-click with scope functions