added comments to htmlcomponent and modified htmlcomponent