switching where the pages go