set position of dialog