Convert page creation to using startAtomic()/endAtomic()