Consolidated logic for displaying the group of cards