finish the flow of dialog

need add threshold and name