re-coded form

Added custom form rather than using a template.