replace -dismissModalViewControllerAnimated to -dismissViewControllerAnimated: completion: