     static let greenGoblinURLsuffix = "/manage"
 }
 
-class ViewController: UIViewController, WKNavigationDelegate {
+class ViewController: UIViewController, WKNavigationDelegate, WKUIDelegate {
     
     var webView: WKWebView!
     var label: UILabel!

        let frame = CGRect(origin: CGPoint(x: 0, y: 0), size: CGSize(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height * 0.8))
        webView = WKWebView(frame: frame)
        webView.navigationDelegate = self
        view.addSubview(webView)
    }
    

    
    func pushStudentToQueue(name: String, time:String, seat: String) {
        print(">>> pushStudentToQueue()")
        let student = Student(name: name, time: time, seat: seat)
        students.append(student)
        vibratePhone()
        scheduleNotification(student: student)
    }
    

    func scheduleNotification(student: Student) {
        let content = UNMutableNotificationContent()
        content.title = student.name
        content.subtitle = student.time
        content.body = student.seat
        content.badge = 1
        
        let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 1, repeats: false)
        
        let requestIdentifier = student.name + student.time
        let request = UNNotificationRequest(identifier: requestIdentifier, content: content, trigger: trigger)
        UNUserNotificationCenter.current().add(request) {
            error in
        }
    }

}

struct Student {
