write page template