These are the changes I made

I made the following changes to my local copy of the ListViewer Im not sure if they are accurate but the things I was trying to do started working as expected.
Yes im pretty sure of that one before that I got null even though the page was clearly visible.