2024: reduce call to HtmlContainer

1. reduce call to HtmlContainer
2. refactor
3. comment some code, waiting for another resource mx technique