update the NSLog in ViewController