adding message to table view in chat view