pagination is functional with all buttons showing