change class names from old template name