Made it so previous data is dynamically retrieved when the page is loaded. Also made it so that previous data is retrieved when user scrolls to bottom of page