diff --git a/nicegui/nicegui.py b/nicegui/nicegui.py
index 15fd4201d..9a56d16ef 100644
--- a/nicegui/nicegui.py
+++ b/nicegui/nicegui.py
@@ -11,7 +11,11 @@
wp = jp.QuasarPage(delete_flag=False, title=Ui.config.title, favicon=Ui.config.favicon)
wp.tailwind = True # use Tailwind classes instead of Quasars
wp.css = HtmlFormatter().get_style_defs('.codehilite')
-wp.head_html += '\n' # avoid confirmation dialog for reload
+wp.head_html += '''
+
+''' # avoid confirmation dialog for reload
main = jp.Div(a=wp, classes='q-ma-md column items-start', style='row-gap: 1em')
main.add_page(wp)
diff --git a/nicegui/static/templates/js/event_handler.js b/nicegui/static/templates/js/event_handler.js
index 638609db5..6c3567a7d 100644
--- a/nicegui/static/templates/js/event_handler.js
+++ b/nicegui/static/templates/js/event_handler.js
@@ -174,4 +174,4 @@ function send_to_server(e, event_type, debug_flag) {
}
}
-// {% endraw %}
\ No newline at end of file
+// {% endraw %}