[imp] added condition on xml and passed userid and partner from js