changed form to use GET instead of POST. RESTful.
rewrote logic for handling the query string