Add new parameter to the HTMLPage build function, fix some more namespaces