Search widget replace by condition