update arrow and buttons