added classes (with span) to empty templates