generated flashcard controller