Disable pagination controls when needed