update our UI before sending data to server