Fixes prev/next buttons.
Merge pull request #9 from roundhill/master

Fixes prev/next buttons.