substituted deprecated modalViewController with presentedViewController