update html and insert loading