using html to render cards