How can I create a collapsible section that displays previously entered data?