diff --git a/ui/css/editor.css b/ui/css/editor.css
index 5e8d6df9..842a9f47 100755
--- a/ui/css/editor.css
+++ b/ui/css/editor.css
@@ -31,17 +31,31 @@
 .sub-panel summary::-webkit-details-marker {
 	color: gray;
 }
-.panel .close-button {
+.panel .close-button,
+.sub-panel .close-button {
 	display: inline-block;
 	position: absolute;
 	right: 5px;
 	cursor: hand;
+	opacity: 0.5;
 }
-.panel .close-button:hover {
+.panel .close-button:hover,
+.sub-panel .close-button:hover {
 	font-weight: bold;
 	color: red;
 	text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
 }
+.sub-panel .close-button {
+	right: 8px;
+}
+.panel .close-button,
+.sub-panel .close-button {
+	visibility: hidden;
+}
+.panel:hover>summary .close-button,
+.sub-panel:hover .close-button {
+	visibility: visible;
+}
 .panel .panel-content {
 	display: block;
 
diff --git a/ui/lib/panels.js b/ui/lib/panels.js
index aa419e21..ab70d269 100755
--- a/ui/lib/panels.js
+++ b/ui/lib/panels.js
@@ -199,6 +199,12 @@ function makePanel(title, parent, open, keep_empty, close_button){
 	var panel = $('