integrated the pull to refresh functionality