update html file and cart