trying to get map events to work