Fix warning message

The modal view controller has been deprecated. This will fix these error messages.