Corrected logic for showMap and showInfo