added remove flashcard functionality