Having max_pages undefined or 0 will disable page window and display all available pages