move the dialog stuff to the awt thread to satisfy the tests