added pull-to-refresh support and infinite scrolling