add button support for pagination
Merge pull request #5412 from Costent/master

Add button support for pagination