Eliminated warning on iOS7 that dismissModalViewControllerAnimated: is deprecated.