update pbutton