dialogue system update

edited dialogue code