code revise for week_form.php