cleanedup the styles for dialog