edit flashcard UI