       url = @driver.getCurrentSlideScreenshot()
       console.log url
 
-    previous: () ->
+    previous: (cb) ->
       #@driver.jump(@driver.currentSlide() - 1a
       @driver.previous()
-      this.trigger('transitionSLide', {url: this.getCurrentSlide()})
-    next: () ->
+      cb({url: @driver.getCurrentSlideScreenshot()})
+      #this.trigger('transitionSLide', {url: this.getCurrentSlide()})
+    next: (cb) ->
       #@driver.jump(@driver.currentSlide() + 1)
       @driver.next()
+      cb({url: @driver.getCurrentSlideScreenshot()})
     jump: (num) ->
       @driver.jump(num)
 

            
            localStorage['allow'] = message.from
            localStorage['device_priority'] = 1
            #if confirm("Allow connection from #{message.name}?")
              #connection.set('connected_from', message.from)
              #localStorage['allow'] = message.from
          when 'next'
            remote.next()
            remote.updateCurrentSlide()
          when 'prev', 'previous'
            remote.previous()
            remote.updateCurrentSlide()
          else
            console.log "Not implement"
        #Okay, remove that command

      this.genUUID()
      
    showConnectionBoard: (uuid) ->
      that = this
      code =
        token: uuid 
        url: window.location.href
