check searchng before close on blur