Fix templates html structure with 3 parts