update button text in class