putting in the http GET and POST handlers