disable menu items when it does not work