adding framework for dialogue