set up the message as object, and move the compose message format part to listener end