made the flash card mode dynamic