working search. input text auto-refreshed improperly