pass search term to the onsearch event