implemented product search functionality