             }
         }
         
-        
-
-        
         self.pickerBackgroundView.frame.origin.y = self.view.frame.size.height + 200
         self.pickerBackgroundView.frame.size.width = UIScreen.mainScreen().bounds.width
         
         picker.frame.size.width = UIScreen.mainScreen().bounds.width
         UIApplication.sharedApplication().keyWindow?.addSubview(pickerBackgroundView)
-//        self.view.addSubview(pickerBackgroundView)
-    }
-    
-//    func showHidePicker(isToShow: Bool) {
-//        UIView.animateWithDuration(0.6,
-//                                   animations: {
-//                                    if isToShow {
-//                                        self.pickerBackgroundView.frame.origin.y = self.view.frame.size.height - 200
-//                                    } else {
-//                                        self.pickerBackgroundView.frame.origin.y = self.view.frame.size.height + 200
-//                                    }
-//            },
-//                                   completion: nil)
-//    }
+    }
     
     // MARK: - Actions
     @IBAction func back(sender: AnyObject) {

        picker = pickerBackgroundView as! YonaCustomPickerView
        var arr = [Int]()
        arr += 1...96
        
//        picker.setData(data: arr,
//                       withCancelListener: {
//                        self.showHidePicker(false)
//        }) { (doneValue) in
      
        picker.setData(onView: self.view, data: arr, withCancelListener:{
            self.picker.showHidePicker(isToShow: false)
        }) { (doneValue) in

        if let maxDurationMinutesUnwrapped = goalCreated?.maxDurationMinutes {
            self.maxTimeButton.setTitle(String(maxDurationMinutesUnwrapped), forState: UIControlState.Normal)
        }
        
        let localizedString = NSLocalizedString("challenges.addBudgetGoal.budgetChallengeDescription", comment: "")
        
