update panels and overlays when switching views