methods with references to modal view controllers are deprecated in iOS 6 - remove them.