update message on window.onload