Added a button for sending messages and cleaned up the code a little
built a message box