fixes turbolinks problem with bootstrap that made dialog pop up multiple times when trying to delete a resource