Simplified generation of list of code fragments.
UI remembers the selected code among transitions.
Form is cleared and UI goes to Show after submission.