added error field to buttonpanel, instead of in testButtons