Fixed a bug with the rotating pages and added in touch functionality