Added dismiss functionality on swapping cards.