Some lines of code were added in card click listener.