Lots of UI code for msg sending

Code for sending messages