Fixed HTML helper functions