update postmessage