   # call on transition end
   finishTransition: =>
     @removeClass @currentPanel, 'visible'
+    @currentPanel.style.display = "none"
     @addClass @targetPanel, 'visible'
     @back = false
     @isTransitioning = false

    if @useScroller is true
    
      if @iScrollInstance? then @iScrollInstance.destroy(); @iScrollInstance = null
      window.setTimeout =>
        @iScrollInstance = new iScroll(@targetPanel.getElementsByClassName('wrapper')[0].id)
        console.log @targetPanel.getElementsByClassName('wrapper')[0].id
      , 0

   # displays pages when transiton is false

    if @transitionAnimation isnt true
      @displayPage()


  # performs slide animation transition
  slideTransition: (speed) ->
    unless @targetPanel
