   modules: -> []
 
   initPage: ->
-    that = this
     unless window.Turbolinks is undefined
-      $(document).bind "page:fetch", ->
-        that.Loading.show()
+      $(document).bind "page:fetch", =>
+        this.Loading.show()
 
-      $(document).bind "page:restore", ->
-        that.Loading.hide()
+      $(document).bind "page:restore", =>
+        this.Loading.hide()
 
-      $(document).bind "page:change", ->
+      $(document).bind "page:change", =>
+        clearTimeout(this.flash_time_out)
         $(window).scrollTop(0)
 
         try

      $('#loading').addClass('show')
    hide: ->
      $('#loading').removeClass('show')


    $.pjax.defaults.scrollTo = false if $.pjax.defaults?
    $.pjax.defaults.timeout = false if $.pjax.defaults?

    this.flash()

    $('.button.disabled').click ->
      return false
