added behavior to clear the search when the last active filter is closed