Add custom menubar handler code