Move the handler to menubar.