As explained in my [previous thread](https://stackoverflow.com/questions/23114107/meteor-showing-object-object-after-creating-meteor-router-add?noredirect=1), I'm following a Meteor tutorial and learning to do a calendar app.

Edit: corrected a few mistakes, plus I made a separate file for the collection called calevents.js, which is placed in a collections folder.

I can add events, but the pop-up window won't show so I can't give them a new name. As this doesn't happen, the new event won't show either. For me to see the events, I have to refresh manually. On edit: I can rename the event but it won't change when I click on Save. 

Here is my code so far:

demonstration.js:

```
    Session.setDefault('editingCalEvent', null);
Session.setDefault('showEditEvent', false);
Session.setDefault('lastMod', null);

Router.map(function () {
      this.route('home', {
        path: '/'
      });
      this.route('calendar', {
        path: '/calendar'
      });
});

Template.calendar.showEditEvent = function() {
  return Session.get('showEditEvent');
}

Template.editevent.evt = function() {
  var calEvent =  CalEvents.findOne({_id:Session.get('editingCalEvent')});
  return calEvent;
}

Template.editevent.events({
    'click .save': function() {
    console.log("update 123, ¿pasó por aquí?");
        updateCalEvent(Session.get('editingCalEvent'), $("#title").val());
    Session.set('editingCalEvent', null);
        Session.set('showEditEvent',false);
        Session.set('lastMod',new Date());
    }
})

Template.calendar.rendered = function() {
    $('#calendar').fullCalendar({
            dayClick:function(date, allDay, jsEvent, view) {
         //console.log("insertando...", date);
         CalEvents.insert({title: 'New Event', start: date, end: date});
         Session.set('lastMod',new Date());
            },

            eventClick:function(calEvent,jsEvent,view) {
                 Session.set('editingCalEvent', calEvent.id);
         Session.set('showEditEvent', true);
            },

      eventDrop:function(calEvent) {
                 CalEvents.update(calEvent.id, {$set: {start:calEvent.start,end:calEvent.end}});
                 Session.set('lastMod',new Date());
            },

            events: function(start, end, callback) {
         var events = [];
         calEvents = CalEvents.find();
         calEvents.forEach(function(evt) {
           events.push({
             id: evt._id,
             title: evt.title,
             start: evt.start,
             end: evt.end
           });
         });
         callback(events);
             },
       editable:true
         });
}

Template.calendar.lastMod = function() {
    return Session.get('lastMod');
}

var updateCalEvent = function(id, title) {
    CalEvents.update(id, {$set: {title:title}});
      return true;
}

```

calendar.html:

```
    <template name="calendar">
    {{#if showEditEvent}}
      {{ >editevent}}
    {{/if}}
  <input type="hidden" name="lastMod" value="{{lastMod}}" id="lastMod">
  <div id="calendar">

  </div>
</template>

<template name="editevent">
  <div id="example" class="modal">
    <div class="modal-header">
      <a class="close" data-dismiss="modal">x</a>
      <h3>Edit event</h3>
    </div>
    <div class="modal-body">
      <label for="title">Event:</label>
      <input type="text" name="title" id="title" value="{{evt.title}}">
    </div>
    <div class="modal-footer">
      <a href="#" class="btn btn-success save">Save</a>
      <a href="#" class="btn cancel" data-dismiss="modal">Cancel</a>
    </div>
  </div>
</template>

```

home.html:

```
<template name="home">
  <div class="hero-unit">
    <h1>Calendar app</h1>
    <p>Manage your calendar</p>
  </div>
</template>

```

demonstration.html:

```
<head>
  <title>Calendar app</title>
</head>

<body>
  {{>menu}}
    <div class="container-fluid">
        <div class="row-fluid"> 
            {{renderPage}}
        </div>
    </div>
</body>

```

I have also downloaded the code from the website given on the tutorial, uploaded it to my Nitrous box, but it doesn't work either. At first I thought that it was something about Nitrous, but it could be something about the Meteor version and unfortunately I don't know enough to find the problem.

The other threads about something related to fullcalendar don't address my problem, but if you think they do, please point me in the right direction. I have also looked at the API of the package, but I'm clueless. 
Does anyone have any ideas?

Many thanks in advance.