start dialog refactor