Limit pagination controls correctly, closes #28