changing display of panels