added functions to support the html class