send beforeMenuPopup event to main window