updating and adding pages