add a CardPane class