Fixed ng-click directive for the log button