diff --git a/libs/cbi/luasrc/view/cbi/delegator.htm b/libs/cbi/luasrc/view/cbi/delegator.htm
index a4a62af640..ed7c6b4ea2 100644
--- a/libs/cbi/luasrc/view/cbi/delegator.htm
+++ b/libs/cbi/luasrc/view/cbi/delegator.htm
@@ -18,20 +18,20 @@ $Id$
<% end %>
<% if not self.disallow_pageactions then %>
-<% if self.allow_back and self:get_prev(self.current) then %>
-
-<% end %>
-<% if self.allow_reset then %>
-
-<% end %>
-<% if self.allow_cancel then %>
-
-<% end %>
<% if self.allow_finish and not self:get_next(self.current) then %>
<% elseif self:get_next(self.current) then %>
<% end %>
+<% if self.allow_cancel then %>
+
+<% end %>
+<% if self.allow_reset then %>
+
+<% end %>
+<% if self.allow_back and self:get_prev(self.current) then %>
+
+<% end %>
<% end %>
\ No newline at end of file