Add click events to cards