         if index == 0 {
             var sImage = UIImage(named: "squir")!
             sImage = scaleTo(image: sImage, w: 22, h: 22)
-            let rightButtonItem = UIBarButtonItem(image: sImage, style: UIBarButtonItemStyle.Plain, target: self, action: "a")
+            let rightButtonItem = UIBarButtonItem(image: sImage, style: .Plain, target: self, action: nil)
             rightButtonItem.tintColor = UIColor.blueColor()
             
             navigationItem.leftBarButtonItem = nil

    }
    
    func alert(title title: String?, message: String, action: String) {
        let alert = UIAlertController(title: title, message: message, preferredStyle: UIAlertControllerStyle.Alert)
        alert.addAction(UIAlertAction(title: action, style: UIAlertActionStyle.Default, handler: nil))
        self.presentViewController(alert, animated: true, completion: nil)
    }
}

        } else if index == 2 {
            var sImage = UIImage(named: "squir")!
            sImage = scaleTo(image: sImage, w: 22, h: 22)
            let leftButtonItem = UIBarButtonItem(image: sImage, style: .Plain, target: self, action: nil)
            leftButtonItem.tintColor = UIColor.blueColor()
            
            navigationItem.leftBarButtonItem = leftButtonItem
