update button properties