fixed the cards display in the table