adds to methods to calendar class, adds view.php