update the pages