update button length