add listener functions ng-click and ng-init