update dialogue system

dialogue history is used