fix the style of a top dialog