Encapsulate the common workflow of saving a form if submitted, displaying it if not.