added UIViewController logging for viewDidAppear and viewWillDisappear events