add basic page template and preprocessing