update deprecated method to up-to-date version, dismissModalViewControllerAnimated: & presentModalViewController:animated: