pagination demo fixed as mentioned in issue #1