Trying to implement pagination in subviews