pagination UI fixes
Do not show the pagination block if the user is outside its range