going to the masquerade
fixed 'put dialog in the center of the screen' algorithm