corrected var error in page template