replace jquery click function in controller with ng-click in angular view. weeee.