modify some func
update dialog style