adding kPermissionDeniedAlertTag and making the permission-denied code a little cleaner.