         
         switch currentSelectedNetwork {
             case "Contacts":
+                print("contacts selected")
                 self.searchForUserByEmail()
             case "Facebook":
+                print("facebook selected")
                 let facebookPermission = defaults.objectForKey("facebookPermission") as! Bool
                 
                 if facebookPermission {

                    self.view.addSubview(facebookLogInButton)
                }
            case "Twitter":
                // get default checked array
                let twitterPermission = defaults.objectForKey("twitterPermission") as! Bool
                

        
        switch currentSelectedNetwork {
            case "Contacts":
                
                // Show users that use the app in the right cell
                for usr in users {
                    let tempContact = contacts[indexPath.row]
                    
                    if usr.email == tempContact["email"] {
                        cell.configureCellWithUserFromContactsThatUsesApp(contacts[indexPath.row], user: usr)
                        break
                    } else {
                        cell.configureCellWithUserFromContacts(contacts[indexPath.row])
                    }
