fixed the refresh view issue for pagination