take id for card deletion from query