added delete card function