added a branch of dialog