reformatted html tab structure