made recursive function to fetch all pages and render in single column. needs loading animation