consider a query containing an empty string as undefined
add a sharing section to cards