dialogs now appear in the center of their parent