 function(){ link_state = 1.0; })
    } else {
      d3.select(e).on('click', function(){ link_state = -1.0; })
    }
  }

  // enter-text
  div.append('br')
  div.append('div').attr('id', 'form')
  var div_form = d3.select('#form');
  div_form.html('');
  div_form.append('input').attr('type', 'text').attr('id', 'tt')
  div_form.append('button').html('Submit').attr('id', 'subbtn').attr('class', 'secondary-action');
  d3.select('#tt')[0][0].value ='';
  randomizeInputs();
  var q = core.sample(ui_utils.FIFTY