Pages set-up before form submission