                 }
                 
             }
-        })
-    }
-    
+        }
+    }
     
     private func callActivityCategory() {
+        print("****** ACTIVITY CALLED ******")
         Loader.Show(delegate: self)
         ActivitiesRequestManager.sharedInstance.getActivitiesNotAdded{ (success, message, code, activities, error) in
             if success{
                 Loader.Hide(self)                
                 self.activityCategoriesArray = activities!
                 self.addNewGoalButton.hidden = !(self.activityCategoriesArray.count > 0)
+                self.callGoals(self.activityCategoriesArray)
             } else {
                 Loader.Hide(self)
                 if let message = message {

        super.viewWillAppear(animated)
        
        self.callActivityCategory()
        setDeselectOtherCategory()

        self.timeBucketData(.BudgetGoalString)
        self.timeBucketData(.TimeZoneGoalString)
        self.timeBucketData(.NoGoGoalString)

        if let tabName = getViewControllerToDisplay(YonaConstants.nsUserDefaultsKeys.timeBucketTabToDisplay) as? String {
            switch tabName {

    }
    
    private func updateUI(goal: GoalType, timeBucketData: [Goal]) {
        
       let arrayData = timeBucketData.sort { $0.GoalName < $1.GoalName }
        switch goal {
        case .BudgetGoalString:
