update to handle form post
added put response for form