changed card views to take Card objects instead of strings