Changed so multiple cards can be selected before the dialog appears