btn reaction upon clicking update