deactivate diagramLayer if a non diagramLayer is selected