make html layout more general