Template.feedButton.rendered = function () {
  //feedButtonId.push(this.firstNode.id);
  //Session.set('feedToggle' + feedButtonId, false);
};

Template.feedButton.helpers({
  display: function () {

    //return Session.get('feedToggle' + feedButtonId);
  }
})
Template.feedButton.events({
  'mousedown .feedButton': function (event) {
    var buttonId = 'button-' + event.target.id;
    var buttonHoverId = 'button-hover-' + event.target.id;
    if (document.getElementById(buttonId)) {
      document.getElementById(buttonId).style.opacity = 0;
    }
    if (document.getElementById(buttonHoverId)) {
      document.getElementById(buttonHoverId).style.opacity = 1;
    }
  },
  'mouseup .feedButton, mousemove .feedButton': function (event) {
    var buttonId = 'button-' + event.target.id;
    var buttonHoverId = 'button-hover-' + event.target.id;
    if (event.type == 'mouseup') {
      if (document.getElementById(buttonId)) {
        document.getElementById(buttonId).style.opacity = 1;
      }
      if (document.getElementById(buttonHoverId)) {
        document.getElementById(buttonHoverId).style.opacity = 0;
      }
    }
  },
  'click .feedButton': function (event) {
    Modules.both.createContract();
  }
})

@@ -1,28 +1,149 @@
+import %7B Template %7D from 'meteor/templating';%0A%0Aimport %7B createContract %7D from '/imports/startup/both/modules/Contract';%0A%0A
 Template.feedButton.rendered
@@ -134,17 +134,19 @@
 dButton.
-r
+onR
 endered 
@@ -152,24 +152,31 @@
  = function 
+onReder
 () %7B%0A  //fee
@@ -172,16 +172,17 @@
 ) %7B%0A  //
+ 
 feedButt
@@ -215,16 +215,17 @@
 d);%0A  //
+ 
 Session.
@@ -384,18 +384,20 @@
 d);%0A  %7D%0A
-
 %7D)
+;%0A
 %0ATemplat
@@ -1318,21 +1318,8 @@
     
-Modules.both.
 crea
@@ -1338,9 +1338,10 @@
 ;%0A  %7D%0A%7D)
+;
 %0A

add imports, rp Modules.both w imp