Hook modifications for multiple templates