Modify pulltorefresh base code