better support for pagination button.