fix dialog width and positioning