Major improvements to the code controlling the menu bar
Merge pull request #250 from VladimirTechMan/improve_menubar_control_code

Major improvements to the code controlling the menu bar