search input finally working