diff --git a/scripts/pi-hole/lua/header.lp b/scripts/pi-hole/lua/header.lp
index 9790cc29..1facf8ea 100644
--- a/scripts/pi-hole/lua/header.lp
+++ b/scripts/pi-hole/lua/header.lp
@@ -89,20 +89,21 @@ is_authenticated = mg.request_info.is_authenticated
+
+if startsWith(scriptname, 'groups') then
+ -- Group management styles
+?>
+
+
+
+ end ?>
if is_authenticated then ?>
end ?>
-
-
- if startsWith(scriptname, 'groups') then ?>
-
-
-
-
- end ?>
+