moved code for form data in URL to FormPage