add a model for map events