Adding pull to refresh and infinite scroll.