Added state swapping for Flashcard View