update default page
minor refactoring