include js logic to show the cards