Add additional function to HtmlPage