teacher flashcards functionality