Updated UIAlertView to UIAlertController

Apparently UIAlertView is deprecated, so updating seemed like a good
idea (and the code is nicer)