modify some comments and method names in travese_dialog