updated form function and redisplayed thank you note as httpresponse