 
 class MainMenuController: NSObject {
     let statusItem = NSStatusBar.system().statusItem(withLength: NSVariableStatusItemLength)
+    let quitMenuItem: NSMenuItem = NSMenuItem(title: NSLocalizedString("menu.quit", comment: "menu"), action: #selector(NSApplication.terminate(_:)), keyEquivalent: "q")
+    let aboutItem: NSMenuItem = NSMenuItem(title: NSLocalizedString("menu.about", comment: "menu"), action: #selector(NSApplication.showAboutWindow), keyEquivalent: "")
+    let preferenceItem: NSMenuItem = NSMenuItem(title: NSLocalizedString("menu.preference", comment: "menu"), action: #selector(NSApplication.showPreferencesWindow), keyEquivalent: ",")
+    
     var devices: [DeviceModel] = []
     var deviceItems: [NSMenuItem] = []
     var recentItems: [NSMenuItem] = []
-    
-    lazy var quitMenuItem: NSMenuItem = {
-        return NSMenuItem(title: NSLocalizedString("menu.quit", comment: "menu"), action: #selector(NSApplication.terminate(_:)), keyEquivalent: "q")
-    }()
-    lazy var aboutItem: NSMenuItem = {
-        return NSMenuItem(title: NSLocalizedString("menu.about", comment: "menu"), action: #selector(NSApplication.showAboutWindow), keyEquivalent: "")
-    }()
-    lazy var preferenceItem: NSMenuItem = {
-        return NSMenuItem(title: NSLocalizedString("menu.preference", comment: "menu"), action: #selector(NSApplication.showPreferencesWindow), keyEquivalent: ",")
-    }()
     
     var tagMap: [String: Int] = [:]
     

            }
        }
        
        let appItems = NSMenuItem.applicationMenuItems(apps)
        for menuItem in appItems.reversed() {
            menu.insertItem(menuItem, at: 0)

        guard datas.count > 0 else {
            return
        }
        var apps: [ApplicationModel] = []
        let bootedDevices = Device.shared.bootedDevices
        for bundleID in datas {
            for device in bootedDevices {
                if let app = device.application(bundleIdentifier: bundleID) {
