This PR consolidates the functionality of the previous methods, enableFilters and disableFilters, which were performing similar tasks, thus eliminating redundancy.

The new applyFilters method integrates these two operations into one, enhancing code reusability and reducing duplication. This change makes the code more concise and easier to maintain. Additionally, the new method accepts an enable parameter to determine whether to enable or disable the filters, allowing both actions to be handled within a single method.