toggle search clear button properly