Fixed page turning forwards to work correctly. still working on going backwards.