Adding callbacks to the MenuBar