update style for pagination