updated back and next buttons