updating the arrow buttons