update button almost working