search input func done