         self.statusItem!.view = progressIndicator
         
         self.menuItemForStopDidClick(NSMenuItem())
-    }
-    
-    // MARK: - NSMenu Actions
+
+    }
+
+}
+
+// MARK: - NSMenu Actions
+
+extension AppDelegate {
 
     func menuItemForCropRecordDidClick(_ sender: NSMenuItem) {
         

        // Insert code here to tear down your application
    }
    
    // MARK: - Main Menu Actions
   
    @IBOutlet weak var mainMenuItem: NSMenuItem!
    @IBAction func mainMenuItemDidClick(_ sender: AnyObject) {
        self.menuItemForCropRecordDidClick(NSMenuItem())
    }

     
        }
        
        // initialize default setting
        NotificationCenter.default.addObserver(self, selector: #selector(self.recordButtonDidClick(_:)), name: NSNotification.Name(rawValue: "CaptureViewRecordButtonDidClick"), object: nil)

