fix location of dialog window