toggle search type