add sending the data to the server