         let action =  count > 1 ? "goback:" : "openmenu:"
         return UIBarButtonItem(image: preferredBackButton(), landscapeImagePhone: .None, style: .Plain, target: self, action: Selector(action))
     }
-    
+
     public func preferredRightButton() -> UIImage {
         return UIImage()
     }
-    
+
     public func preferredRightButtonItem() -> UIBarButtonItem {
-        let image = preferredBackButton()
+        let image = preferredRightButton()
         return UIBarButtonItem(image: image, landscapeImagePhone: .None, style: .Plain, target: self, action: Selector("preferredRightButtonTarget:"))
     }
-    
+
     public func preferredRightButtonTarget(sender: AnyObject){
-        
+
     }
 
 }

        determineNavBarButtons()
        determineBackButton()
    }
    
    public func setNavigationTitleColor(color: UIColor){
        let attrs : NSDictionary = [NSForegroundColorAttributeName : color]
        self.navigationController?.navigationBar.titleTextAttributes = attrs as? [String : AnyObject]

    func determineBackButton(){
        self.navigationItem.leftBarButtonItem = preferredLeftBarButtonItem()
    }

    func determineRightButton(){
        self.navigationItem.rightBarButtonItem = preferredRightButtonItem()
    }
