Reorganizing HTML in lighting control