bugfix check page out of bounds (was out by 1)
bugfix 'single' view pagination