Make dialogs not blow up on orientation change