add messages functionality to allow user chatting