new page template system fixed; now works