fixed a nasty threading bug about showing the menu blank after opening the already selected menu item