How to render a form with an external submit button