added break statements to the search and details button listeners