added search handling in products controller