change to hide pagination controls when not needed