added dynamic templating to the response data.