         inViteUsersLabel.leftAnchor.constraint(equalTo: view.leftAnchor, constant: 14).isActive = true
         inViteUsersLabel.topAnchor.constraint(equalTo: view.topAnchor, constant: 79.5).isActive = true
         inViteUsersLabel.translatesAutoresizingMaskIntoConstraints = false
-        /*
-        nameField = UITextField()
-        nameField.placeholder = "New Group Name"
-        nameField.textColor = UIColor.init(red: 216, green: 216, blue: 216)
-        nameField.font = UIFont.boldSystemFont(ofSize: 24)
-        //rgb 18 39 75
-        nameField.textColor = UIColor(r: 18/255, g: 39/255, b: 75/255)
-        nameField.keyboardType = .alphabet
-        nameField.textAlignment = .natural
-        nameField.autocorrectionType = .no
-        nameField.spellCheckingType = .no
-        nameField.autocapitalizationType = .none
-        view.addSubview(nameField)
-        nameField.leftAnchor.constraint(equalTo: view.leftAnchor, constant: 14).isActive = true
-        nameField.topAnchor.constraint(equalTo: view.topAnchor, constant: 79.5).isActive = true
-        nameField.translatesAutoresizingMaskIntoConstraints = false
-        
-        nameField.addTarget(self, action: #selector(textFieldDidChange(_:)), for: UIControl.Event.editingChanged)
-        */
     }
     
     @objc func cancelBtnAction(sender:UIButton!) {

        searchBar = UISearchBar()
        searchBar.searchTextField.placeholder = "Search by Name or PennKey"
        searchBar.searchTextField.textColor = UIColor.init(red: 216, green: 216, blue: 216)
        
        view.addSubview(searchBar)
        searchBar.topAnchor.constraint(equalTo: inViteUsersLabel.bottomAnchor, constant: 30).isActive = true
        searchBar.leftAnchor.constraint(equalTo: view.leftAnchor, constant: 8).isActive = true
        searchBar.rightAnchor.constraint(equalTo: view.rightAnchor, constant: -8).isActive = true
        searchBar.translatesAutoresizingMaskIntoConstraints = false
        
    }
 
    

        prepareCloseButton()
        prepareInViteUsersLabel()
        prepareSearchBar()
        prepareSendInvitationButton()
    }
}
