refactor scope assignment and dialog state management: scopes use a distinct tree, that can is decoupled from the interface structure model