Added code to allow for disabling menu items