fix switching to graph screen (Leaflet Events dont seem compatible w/ jQuery)