better way to handle dragging or clicking on cards