fix ios

Fix for ios:
dismissModalViewControllerAnimated deprecated