changed dialog structure