fixed enabling/disabling menu bar items