fix prev and next buttons; was swapped