fixed the document event listener problem by disabling turbolinks