dialog module improved next ids output