Prev and next buttons are disabled on the proper rows