bugfix retain dialog after orientation change