reaction code for GET/POST request and update form