repaint when sidebar state changes