Change the key of submenu to be dynamic