adding optimizations to the product search and the new home page