handle message is changed