updated product add and search functions