Changed the to and fro of pages