         
         let height = keyWindow.frame.width * 9 / 16
         let tripHeaderFrame = CGRect(x: 0, y: 0, width: keyWindow.frame.width, height: height)
-        let tripHeader = TripHeader(frame: tripHeaderFrame)
+        tripHeader = TripHeader(frame: tripHeaderFrame)
         tripHeader.trip = self.trip
         tripHeader.tripDetail = self
         tripView.addSubview(tripHeader)

    }
    
    func closeView() {
        keyWindow.willRemoveSubview(tripView)
        keyWindow.removeFromSuperview()
    }
    
}

    }
    
    var tripView: UIView!
    var tripHeader: TripHeader!
    var keyWindow = UIApplication.shared.keyWindow!
    
    func showTripDetai() {
