diff --git a/instance/log.ejs b/instance/log.ejs
index c01129c582099b768404806de32aec3719bee600..1c920d42ce4f9254ac0aec97802213ad9b4be618 100644
--- a/instance/log.ejs
+++ b/instance/log.ejs
@@ -18,7 +18,7 @@
         <div style='border-color: #abb6c2; border-style: solid; border-top: none; height: 100%;'>
             <table class='table table-sm' style='margin: 0px;'>
                 <thead class='thead-light'
-                       style='position: sticky; position: -webkit-sticky; top: 0; z-index: 999;'>
+                       style='position: sticky; position: -webkit-sticky; top: 0; z-index: 999; -webkit-app-region: drag'>
                     <tr>
                         <th style='border: 0px; position: sticky; position: -webkit-sticky; top: 0; z-index: 999;'>Timestamp</th>
                         <th style='border: 0px; position: sticky; position: -webkit-sticky; top: 0; z-index: 999;'>Label</th>
diff --git a/instance/log.js b/instance/log.js
index 5dba3f87303237f25f013e8dd3d5fabcaaf1469a..3eb02c9714b41d0465dbf1cf8d6eae802e145572 100644
--- a/instance/log.js
+++ b/instance/log.js
@@ -28,6 +28,10 @@ file.on('line', line => {
             <td>${match[3]}</td>
         </tr>`
     );
+
+    const limit = 200;
+    var trs = $('tr');
+    if (trs.length > limit) trs.slice(2, trs.length - limit).remove();
 });
 
 window.onload = () => {};