diff --git a/fetchmail/edit_cron.cgi b/fetchmail/edit_cron.cgi
index d1d3f4157..fa1bf4b6f 100755
--- a/fetchmail/edit_cron.cgi
+++ b/fetchmail/edit_cron.cgi
@@ -62,13 +62,12 @@ print &ui_table_row($text{'cron_enabled'},
&ui_radio("enabled", $job ? 1 : 0,
[ [ 1, $text{'yes'} ], [ 0, $text{'no'} ] ]));
-print "
\n";
$job ||= { 'special' => 'hourly' };
-&cron::show_times_input($job);
-print " |
\n";
+print &ui_table_row(undef,
+ &capture_function_output(\&cron::show_times_input, $job));
-print "\n";
-print "\n";
+print &ui_table_end();
+print &ui_form_end([ [ undef, $text{'save'} ] ]);
&ui_print_footer("", $text{'index_return'});