deleting window.flashes after shown once to prevent duplicates appearing when using turbolinks