Code to handle reaching bottom of top stories