added delegate method

I want detect the transition between the view controllers. I need a reference to the new displayed view controller. So I added a delegate.