added log in viewController.m