      <table id="checkedintable">
 diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/rfidhub.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/rfidhub.inc
 new file mode 100644
-index 0000000..cfe5fea
+index 0000000..ed08dce
 --- /dev/null
 +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/rfidhub.inc
-@@ -0,0 +1,288 @@
+@@ -0,0 +1,303 @@
 +[% USE Koha %]
 +<style type="text/css">
 +/*

+  '<p id="itemStatus">&nbsp;</p>'+
+  '</div>'+
+  '<div id="writeRFIDButtons">'+
+  '<a href="#" id="writeButton" class="hidden btn btn-small" onclick="return writeItem();">Preg brikker</a></div>'+
+  '<a href="#" class="btn btn-small" onclick="return lookupItem();">Søk opp bok</a>'+
+  '<a href="#" class="btn btn-small" onclick="return deactivateWrite();">Avslutt</a></div>');
+}
+
+function lookupItem() {
+  // Request item info
+  ws.send(JSON.stringify({Action: "ITEM-INFO", Item: { Barcode: $('#barcodeInput').val() } }));
+  return true;
+}
+
+function writeItem() {
+  var msg = JSON.stringify({Action: "WRITE", Item: { Barcode: $('#barcodeInput').val(), NumTags: parseInt($('#itemTags').val()) } });
+  console.log(msg);
+  ws.send(msg);

+    row.children('td').css("backgroundColor", "pink");
+  } else if(msg.Item.AlarmOnFailed || msg.Item.AlarmOffFailed) {
+    row.children('td').css("backgroundColor", "pink");
+    row.append('<td><a href="#" class="btn btn-small" onclick="return retryAlarm(ws);">Retry</a></td>');
+  } else {
+    row.children('td').effect("highlight", {color: "lightgreen"}, 3000);
+  }
