hide the invalid menu