modify control menu logic