small correction to addMessage() in main.html