Define all Xdomain callbacks