ajax+buttons and updated method update