update html page, small refactoring