Added info panel switching functionality