edited updatebuttons