adding infinite scroll and back to top