Update onFiltersChanged method.