implemented card deletion