rewrite of form handling logic to avoid extraneous query strings. The only query string needed now is to specify location