Updated search function to add/remove each card, rather than batch of cards