implement panel manager for panel switching