code: function updateControls() {
  		var query = $.trim($("input[name=query]").val());
  
  		$("#btnPin").attr("disabled", !taxonTree.getActiveNode());
  		$("#btnUnpin")
  			.attr("disabled", !taxonTree.isFilterActive())
  			.toggleClass("btn-success", taxonTree.isFilterActive());
  		$("#btnResetSearch").attr("disabled", query.length === 0);
  		$("#btnSearch").attr("disabled", query.length < 2);
  	}
docs: Update UI elements according to current status