Adds event to the module to be able to cancel applying the filter.