implemented search feature