refactor HTML structure for edu dection