prepare page