diff --git a/module/task/ui/close.html.php b/module/task/ui/close.html.php
index 60c4c23f45..450dc35386 100644
--- a/module/task/ui/close.html.php
+++ b/module/task/ui/close.html.php
@@ -40,4 +40,4 @@ formPanel
history()
);
-render();
+render(isonlybody() ? 'modalDialog' : null);
diff --git a/module/task/ui/finish.html.php b/module/task/ui/finish.html.php
index 7c6d742c95..0ee331c4fc 100644
--- a/module/task/ui/finish.html.php
+++ b/module/task/ui/finish.html.php
@@ -153,4 +153,4 @@ else
);
}
-render();
+render(isonlybody() ? 'modalDialog' : null);
diff --git a/module/task/ui/start.html.php b/module/task/ui/start.html.php
index 2f0fd25cff..195a611b07 100644
--- a/module/task/ui/start.html.php
+++ b/module/task/ui/start.html.php
@@ -144,4 +144,4 @@ else
}
/* ====== Render page ====== */
-render();
+render(isonlybody() ? 'modalDialog' : null);