update button css classes