refresh the page when we hit the end