changing the form of display message from cross-domain