Fix menu cascading issue; Panel menu over window menu
Disable close button if no window to close