update the style of dialogue