Move page template into a separate file