Fixes #12: Messages are added when the "Add Message" button is clicked, not when the "OK" button is clicked after the message is typed.