rebuild buttonpanel