updated for winpanel change