added the request as argument to the function onParseEnd