update markup for cards