diff --git a/module/task/ui/activate.html.php b/module/task/ui/activate.html.php
index f64d8fe071..245941cd9b 100644
--- a/module/task/ui/activate.html.php
+++ b/module/task/ui/activate.html.php
@@ -220,5 +220,4 @@ modalTrigger
);
/* ====== Render page ====== */
-render();
-
+render(isonlybody() ? 'modalDialog' : 'page');
diff --git a/module/task/ui/assignto.html.php b/module/task/ui/assignto.html.php
index 160529bf30..cde10c5c59 100644
--- a/module/task/ui/assignto.html.php
+++ b/module/task/ui/assignto.html.php
@@ -57,5 +57,4 @@ formPanel
)
);
-
render('modalDialog');
diff --git a/module/task/ui/cancel.html.php b/module/task/ui/cancel.html.php
index 16f6e4caf7..13ea70661d 100644
--- a/module/task/ui/cancel.html.php
+++ b/module/task/ui/cancel.html.php
@@ -40,4 +40,4 @@ formPanel
history()
);
-render();
+render(isonlybody() ? 'modalDialog' : 'page');
diff --git a/module/task/ui/close.html.php b/module/task/ui/close.html.php
index 450dc35386..9c94554455 100644
--- a/module/task/ui/close.html.php
+++ b/module/task/ui/close.html.php
@@ -40,4 +40,4 @@ formPanel
history()
);
-render(isonlybody() ? 'modalDialog' : null);
+render(isonlybody() ? 'modalDialog' : 'page');
diff --git a/module/task/ui/finish.html.php b/module/task/ui/finish.html.php
index 0ee331c4fc..888a89df81 100644
--- a/module/task/ui/finish.html.php
+++ b/module/task/ui/finish.html.php
@@ -153,4 +153,4 @@ else
);
}
-render(isonlybody() ? 'modalDialog' : null);
+render(isonlybody() ? 'modalDialog' : 'page');
diff --git a/module/task/ui/pause.html.php b/module/task/ui/pause.html.php
index cc49203273..73ecec1558 100644
--- a/module/task/ui/pause.html.php
+++ b/module/task/ui/pause.html.php
@@ -43,7 +43,4 @@ formPanel
history()
);
-
-/* ====== Render page ====== */
-
-render();
+render(isonlybody() ? 'modalDialog' : 'page');
diff --git a/module/task/ui/restart.html.php b/module/task/ui/restart.html.php
index dd20cec72b..fb5b9cd0be 100644
--- a/module/task/ui/restart.html.php
+++ b/module/task/ui/restart.html.php
@@ -143,4 +143,4 @@ else
}
/* ====== Render page ====== */
-render();
+render(isonlybody() ? 'modalDialog' : 'page');
diff --git a/module/task/ui/start.html.php b/module/task/ui/start.html.php
index 195a611b07..24123e9b67 100644
--- a/module/task/ui/start.html.php
+++ b/module/task/ui/start.html.php
@@ -144,4 +144,4 @@ else
}
/* ====== Render page ====== */
-render(isonlybody() ? 'modalDialog' : null);
+render(isonlybody() ? 'modalDialog' : 'page');