updating the pages