block 'dialog-window' refactor