Added code to hide menu items that are disabled in menu gui