fix dialog style bugs