update button variables