added a feature to switch all/any in the incremental search