     activityIndicator.show()
     headerContents.add(activityIndicator)
     
-    headerLabel = Ti.UI.createLabel({
+    @headerLabel = Ti.UI.createLabel({
       color: "#576c89"
       font: { fontSize: 13 }
       text: "Pull down to refresh..."


    @table.addEventListener('scroll', (e) =>
      @offset = e.contentOffset.y
      if @pulling && !@reloading && @offset > -50 && @offset < 0
        @pulling = false
      else if !@pulling && !@reloading && @offset < -50
        @pulling = true
    )

    @table.addEventListener('dragEnd', (e) =>
      if @pulling && !@reloading && @offset < -50
        @pulling = false
        @reloading = true
        e.source.setContentInsets({ top: 50 }, { animated: true })
        #@options.pullToRefreshCallback(e)
        #@resetPullHeader()
    )
    
  resetPullHeader: ->
    @reloading = false
    @table.setContentInsets({ top: 0 }, { animated: true })
  
  getFormattedDate: ->
    date = new Date()
    return date.getMonth() + '/' + date.getDate() + '/' + date.getFullYear() + ' ' + date.getHours() + ':' + date.getMinutes()
    
    
  createTableHeader: ->
    tableHeader = Ti.UI.createView({
      backgroundColor: "#e2e7ed"
      width: Ti.UI.FILL

      width: Ti.UI.SIZE
      height: Ti.UI.SIZE
    })
    headerContents.add(@headerLabel)
    
    tableHeader.add(headerContents)
    tableHeader