refactor infinite scroll to reload previously viewed posts that are removed from the top of the view when new posts are loaded into the view