fixed default page logic