           eventIndex += 1
 
     instance.templateEvents.set templateEvents
-    instance.disablePrev.set if eventIndex < filteredEvents?.length then false else true
-    instance.disableNext.set if currentPage is 0 then true else false
+    instance.disableNext.set if eventIndex < filteredEvents?.length then false else true
+    instance.disablePrev.set if currentPage is 0 then true else false
     if instance.allMapMarkers
       map.removeLayer instance.allMapMarkers
     MapHelpers.addMarkersToMap map, instance, filteredMapLocations


Template.eventMap.events
  "click .event-list-next:not('.disabled')": (event, template) ->
    paginate template, -1

  "click .event-list-prev:not('.disabled')": (event, template) ->
    paginate template, 1


Template.markerPopup.helpers
  getEvents: () ->

  @pageNum = new ReactiveVar(0)
  @eventsPerPage = 8
  @templateEvents = new ReactiveVar null
  @disablePrev = new ReactiveVar true
  @disableNext = new ReactiveVar false
  @selectedEvents = new Meteor.Collection null

Template.eventMap.onRendered ->
