improve custom css dialog