modality issue fixed for addMod and configMod dialog