Adding UIApplication dismissAllAlerts and changed sharedClient to sharedInstance