updating the button positions