modified onallbutton error