refactored listing of cards