Fixed error wherby the pageTurn function was being called on a paragraph