update handling of panels