updated the terminal component to listen to change events on the data model and update in real time