);
      } }
    ]
  });

  $('.ui-dialog')[0].style.margin = core.randi(15,25) + 'px ' + core.randi(5,10) + 'px';
  $('.ui-dialog')[0].style.width = core.randi(115,140) + 'px';

  $('.ui-dialog-titlebar button.ui-button').on('click', function(e){
    task_state = expectedButton === 'x' ? 1.0 : -1.0;
    console.log('click-dialog-2', task_state);
  });

  d3.select('#username')[0][0].value ='';
  d3.select('#password')[0][0].value ='';

  var user = core.sample(ui_utils.FIFTY_NAMES).toLowerCase();
  var pas