finished search search functionality (save random) for merchant.