How to update data from HTTP requests