How to apply sectioning and formatting to the form?