updating positions in pages