make the portal details close button switch back to the map on mobile