     var delegate:UIViewController!=nil
     var userModel:UserModel!
     var selectorType:CountrySelectorType!
+    var locationManager:LocationManager!
     
     override func viewDidLoad() {
         super.viewDidLoad()

        countryTableView = CountryTableViewController(userModel: userModel, selectorType: selectorType)
        countryTableView.view.setTranslatesAutoresizingMaskIntoConstraints(false)
        
        var lm = LocationManager(userModel: userModel)
        switch selectorType! {
        case .GPS:
            lm.getUserCurrentLocale(false).onSuccess {locale in
                self.setButtonLocaleAndStyle(locale)
            }
            break
        case .HOME_COUNTRY:
            self.setButtonLocaleAndStyle(lm.getUserHomeLocale(false))
            break
        }
        

        
        var verticalLayout = NSLayoutConstraint.constraintsWithVisualFormat(
            visualFormat, options: NSLayoutFormatOptions(0), metrics: nil, views: views)
        
        let size: CGSize = useDetectedButton.titleLabel!.text!.sizeWithAttributes([NSFontAttributeName: useDetectedButton.titleLabel!.font])
        view.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("H:|-0-[topBanner]-0-|", options: NSLayoutFormatOptions(0), metrics: nil, views: views))
