change the dialog position