added html response handler