search results action btn logic