simplify labels html code