update calendar.php