 #backBtn.addEventListener 'touchstart', ->
 #  flight.slideTransition('#panel-1','#panel-2','0.4s',true)
 backBtn.addEventListener 'click', ->
-    flight.slideTransition('#panel-1','#panel-2','0.4s',true)
+    flight.slideTransition('#panel-2','0.4s',true)
 
 $('.forward').click (e) =>
   flight.slideTransition('#panel-1','#panel-2','0.4s',false)


    if @isTransitioning is true then return else @isTransitioning = true

    currDiv = document.querySelector currDiv
    targetDiv = document.querySelector targetDiv

    targetDiv.style.display = "block"
    currDiv.style.display = "block"

    if back is true


      else
        firstChild = firstChild.nextSibling

  slideTransition: (targetDiv, speed, back) ->

    # TODO: look into transform origin
    # TODO: make use of data tags

    unless @ and targetDiv
      throw new Error "Need to set current div and target div in Slide in flight.slideTranstion"
      return

