viewing other pages logic
viewing other pages logic