setting up the message on dom load