templates: using correct data for overlay