amended after calendar.php combined into index.php