Dynamically populate results page/pane complete
Cleaned up code