xray mainControler and targetControler