apply template system on some pages