Changed the menu item disabling code

Now the items are shaded gray automatically :)