added confirm logic for map remove