update button states