page template now reflects page id in DB