update dialog history functionality