update html generation