Some flashcard view logic