adds card markup and styling