Added event handler for filter.