add page exists checking
add some default page vars