fixed some issues with default page template