(this would only be an appropriate change if it were made in the code that handles the "Apply" click too, and in that case it should be moved to a central location that's used from both)