prepare pages