     func discoverUserBySkillName(skillName: String) {
         
         discoverUsers(masterSkills: [skillName], learningSkills: [], discoveredUserSortStyle: .LastSignIn, failureHandler: { (reason, errorMessage) in
+            
             defaultFailureHandler(reason, errorMessage)
             
-            }, completion: { discoveredUsers in
-                self.discoveredMasterUsers = discoveredUsers
-
-                dispatch_async(dispatch_get_main_queue()) {
-                    self.masterTableView.reloadData()
-                }
+        }, completion: { discoveredUsers in
+                
+            self.discoveredMasterUsers = discoveredUsers
+
+            dispatch_async(dispatch_get_main_queue()) {
+                self.masterTableView.reloadData()
+            }
         })
         
         discoverUsers(masterSkills: [], learningSkills: [skillName], discoveredUserSortStyle: .LastSignIn, failureHandler: { (reason, errorMessage) in
+            
             defaultFailureHandler(reason, errorMessage)
             
-            }, completion: { discoveredUsers in
-                self.discoveredLearningUsers = discoveredUsers
-                
-                dispatch_async(dispatch_get_main_queue()) {
-                    self.learningtTableView.reloadData()
-                }
+        }, completion: { discoveredUsers in
+                
+            self.discoveredLearningUsers = discoveredUsers
+            
+            dispatch_async(dispatch_get_main_queue()) {
+                self.learningtTableView.reloadData()
+            }
         })
     }
 

        }
    }
    
    var state: SkillHomeState = .Master {
        willSet {
            
            
            switch newValue {
            case .Master:

    }
    
    override func viewDidLayoutSubviews() {
        
        super.viewDidLayoutSubviews()
        
        let height = YepConfig.getScreenRect().height - headerView.frame.height
        
        skillHomeScrollView.contentSize = CGSize(width: skillHomeScrollView.frame.size.width*2, height: height)
        
        masterTableView.frame = CGRect(x: 0, y: 0, width: skillHomeScrollView.frame.size.width, height: height)
        
        learningtTableView.frame = CGRect(x: masterTableView.frame.size.width, y: 0, width: skillHomeScrollView.frame.size.width, height: height)
        
    }

    override func viewDidAppear(animated: Bool) {
        
        super.viewDidAppear(animated)
        
        if !isStateFirstInit {
            state = .Master
            isStateFirstInit = true
        }

        
    }
    
    func changeToMaster() {
        
        state = .Master
    }
    
    
    func changeToLearning() {
        
        state = .Learning
    }
    
