set unmount event based on Turbolinks version