added send msg to service function for send button, possible to do multiple functions with one button onclick