Removed reliance on a view controller to display alert, Updated the example to work with the new code changes