now there is a new function agenda to file check box that will output
the agenda display into a file in addition to display the agenda view.
This is to satisfy the Strategy pattern requirement. The "next" and
"previous" button will also change the display now.  Also fix a another
bug so that when you click a empty space in the calendar, nothing will
show on the view.