functionalizing html work