 Dashing.DashboardSwitcher = DashboardSwitcher
 Dashing.WidgetSwitcher = WidgetSwitcher
 Dashing.DashboardSwitcherControls = DashboardSwitcherControls
+Dashing.WidgetSwitcherControls = WidgetSwitcherControls
 
 # Dashboard loaded and ready
 Dashing.on 'ready', ->

      @widgetSwitcher.next()
    else
      @widgetSwitcher.prev();
    # Stop and reset timer
    @$timer.stop().play(true)

  updateTimer: () =>
    # Update widget name
    @$nextWidgetNameContainer.html(
      @$nextWidgetNameTemplate.html().replace('$nextName', @widgetSwitcher.nextName())
    )
    # Output timer position
    timeString = @formatTime(@currentTime)
    @$countdown.html(timeString)

    # If timer is complete, trigger alert
    if @currentTime is 0
      #@pause()

    @$manualPrev = $("<span id='dc-wid-switcher-prev' class='fa fa-backward'></span>").
      html(@arrowContent).
      click () =>
        @switchWidget(false)
    @$manualNext = $("<span id='dc-wid-switcher-next' class='fa fa-forward'></span>").
      html(@arrowContent).
      click () =>
        @switchWidget()
    @$switcherStopper = $("<span id='dc-wid-switcher-pause-reset' class='fa fa-pause'></span>").
      html(@stopTimerContent).
      click(@pause)
