finalize form, styles and content