Fixed the menu bar so that sub menus will auto hide after losing focus.