     @IBOutlet weak var passengerTable: NSTableView!
     var passengers = [PassengerDTO]()
     let maxSelectedPassengerCount = 5
-    var hasSelectedPassengerCount = 0
     
     override func viewDidLoad() {
         super.viewDidLoad()
-        hasSelectedPassengerCount = 0
         
         let notificationCenter = NSNotificationCenter.defaultCenter()
         notificationCenter.addObserver(self, selector: #selector(PassengerSelectViewController.receiveLogoutMessageNotification(_:)), name: DidSendLogoutMessageNotification, object: nil)

    func receiveLogoutMessageNotification(notification: NSNotification) {
        passengers.removeAll()
        passengerTable.reloadData()
        hasSelectedPassengerCount = 0
    }
    
    @IBAction func checkPassenger(sender:NSButton){
        if sender.state == NSOnState{
            hasSelectedPassengerCount += 1
        }
        else{
            hasSelectedPassengerCount -= 1
        }
        
        if hasSelectedPassengerCount > maxSelectedPassengerCount {
            hasSelectedPassengerCount -= 1
            sender.state = NSOffState
            
            for passenger in passengers{

                    break
                }
            }
            
            return
        }
        
        let notificationCenter = NSNotificationCenter.defaultCenter()
        notificationCenter.postNotificationName(DidSendCheckPassengerMessageNotification, object: sender.title)
    }
    
    func isMaxPassengerNumber(exclude excludePassenger:String)->Bool {
        var count = 0
        for passenger in passengers{
            if (passenger.isChecked)&&(passenger.passenger_name != excludePassenger) {
                count += 1
            }
        }
        
        if count >= maxSelectedPassengerCount {
            return true
        }
        else {
            return false
        }
    }
    
    func tableView(tableView: NSTableView, rowViewForRow row: Int) -> NSTableRowView? {
