update baseurl for pagination