[PDI-7241] added menu numbering additional check for barward
compatibility