updated to use model in response, added header