Temporary fix to dialog bug.  Dismisses the dialog when rotated.