added functionality to send data to server