Can someone advise on logic of Next and Previous button when changes have been applied to previous item?