update button click event