Implemented page swiping