Changed the interfaces for htmlFunctions