update postMessage