 
     // MARK: location delegate
 
-    public func locationManager(manager: CLLocationManager!, didChangeAuthorizationStatus status: CLAuthorizationStatus) {
+    public func locationManager(manager: CLLocationManager, didChangeAuthorizationStatus status: CLAuthorizationStatus) {
 
         detectAndCallback()
     }
     
     // MARK: bluetooth delegate
     
-    public func peripheralManagerDidUpdateState(peripheral: CBPeripheralManager!) {
+    public func peripheralManagerDidUpdateState(peripheral: CBPeripheralManager) {
         
         detectAndCallback()
     }

            dialogHeight = 260
        }
        
        var y = (screenSize.height - dialogHeight) / 2
        contentView.frame = CGRect(x:x, y:y, width:contentWidth, height:dialogHeight)

        // offset the header from the content center, compensate for the content's offset

		
        // Set up main view
        view.frame = UIScreen.mainScreen().bounds
        view.autoresizingMask = [UIViewAutoresizing.FlexibleHeight, UIViewAutoresizing.FlexibleWidth]
        view.backgroundColor = UIColor(red:0, green:0, blue:0, alpha:0.7)
        view.addSubview(baseView)
        // Base View
