Added deletion functionality to flashcards