When in edit/delete mode, revertLayers has to be called
when another handler is clicked on.