added dayView.php, updated functions.php