     # Stop and reset timer
     @$timer.stop().once()
 
-  updateTimer: () ->
+  updateTimer: () =>
+    # Update dashboard name
+    @$nextDashboardNameContainer.text("Next dashboard: #{@nextDashboardName} in ")
     # Output timer position
-    timeString = formatTime(currentTime)
+    timeString = @formatTime(@currentTime)
     @$countdown.html(timeString)
 
     # If timer is complete, trigger alert

class WidgetSwitcher
  constructor: (@elements) ->
    @$elements = $(elements)
    @incrementTime = 1000 # refresh every 1000 milliseconds

  start: (interval=5000) ->
    self = @


    # Increment timer position
    @currentTime -= @incrementTime
    if @currentTime < 0
      @currentTime = 0


# Dashboard loaded and ready
Dashing.on 'ready', ->
