Refactored HTML response from post requests.